import styled from 'styled-components'

export const LoadingMoreStyle = styled.div`
  width: 100%;
  text-align: center;
  padding: .16rem;
  p{
    font-size: .32rem;
    font-weight: 400;
  }
`

export const ComponentLoadingStyle = styled.div`

  width:100%;
  display: flex;
  align-items: center;
  justify-content: center;  
  height: 100vh;

  .pswp__preloader__icn {
  opacity:0.75;
  width: 1.28rem;
  height: 1.28rem;
  -webkit-animation: clockwise 500ms linear infinite;
  animation: clockwise 500ms linear infinite;
}
 
/* The idea of animating inner circle is based on Polymer loading indicator by Keanu Lee https://blog.keanulee.com/2014/10/20/the-tale-of-three-spinners.html */
.pswp__preloader__cut {
  position: relative;
  width: .64rem;
  height: 1.28rem;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}
 
.pswp__preloader__donut {
  box-sizing: border-box;
  width: 1.28rem;
  height: 1.28rem;
  border: 2px solid #000;
   border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  background: none;
  margin:0;
   -webkit-animation: donut-rotate 1000ms cubic-bezier(.4,0,.22,1) infinite;
  animation: donut-rotate 1000ms cubic-bezier(.4,0,.22,1) infinite;
}
 
@-webkit-keyframes clockwise {
  0% { -webkit-transform: rotate(0deg) }
  100% { -webkit-transform: rotate(360deg) }
}
@keyframes clockwise {
  0% { transform: rotate(0deg) }
  100% { transform: rotate(360deg) }
}
@-webkit-keyframes donut-rotate {
  0% { -webkit-transform: rotate(0) }
  50% { -webkit-transform: rotate(-140deg) }
  100% { -webkit-transform: rotate(0) }
}
@keyframes donut-rotate {
  0% { transform: rotate(0) }
  50% { transform: rotate(-140deg) }
  100% { transform: rotate(0) }
}


`

export const LoadedStyle = styled.div`

`

export const RequestLoadingStyle = styled.div`

`
export const RenderLoadingStyle = styled.div`

`